using System.Linq;
using System.Collections.Generic;
using Managistics.Model;

namespace Managistics.Core.Repositories
{
    public class GoodRepository : RepositoryBase<Good, int>, IGoodRepository
    {
        public List<Good> GetGoodsOfItemType(int itemTypeId)
        {
            return GetAll().Where(good => good.ItemTypeId == itemTypeId).ToList();
        }
    }
}